package com.ly.ocw.web.admin;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ly.ocw.service.weixin.WeixinConf;

/**
 * 
 * User: xvitcoder
 * Date: 12/20/12
 * Time: 5:27 PM
 */
@Controller
@RequestMapping("/admin/headerNotice")
public class HeaderNoticeController {
	
	private static Logger logger = LoggerFactory.getLogger(HeaderNoticeController.class);
	
	@Autowired
	private WeixinConf weixinConf;

    @RequestMapping(value="ajax/weixinPublic",method = RequestMethod.GET)
    @ResponseBody
    public String getWeixinPublic() {
    	logger.info("getWeixinPublic");
        return weixinConf.getPublicId().toString();
    }
}
